import axios from "axios";
export default {
  get(api, callback) {
    axios
      .get(api)
      .then(callback)
      .catch((err) => {
        console.log(err);
      });
  },
  post(api, post, callback) {
    axios
      .post(api, post)
      .then(callback)
      .catch((err) => {
        console.log(err);
      });
  },
};
